//
//  TouchView.m
//  UI03_UIResponder
//
//  Created by Hanlingyu on 16/7/18.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView

// 继承于 UIResponder
// Appdelegate UIView UIViewController

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    NSLog(@"self.view = %@", self.nextResponder);
    NSLog(@"viewController = %@", self.nextResponder.nextResponder);
    NSLog(@"window = %@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIApplication = %@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"Appdelegate = %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"放弃事件 = %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);



//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"%@-------%s", [self class],  __FUNCTION__);
}
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@-------%s", NSStringFromClass([self class]),  __FUNCTION__);
}
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@-------%s", [self class],  __FUNCTION__);
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
